package com.itqianfeng.smartmeeting.util;

import java.util.HashMap;
import java.util.Map;

public class CommonResult {
   public static Map ok(String msg,Object data){
       Map map = new HashMap<>();
       map.put("data",data);
       map.put("code",1);
       map.put("msg",msg);
       return map;
   }
    public static Map error(String msg,int  code){
        Map map = new HashMap<>();
        map.put("code",code);
        map.put("msg",msg);
        return map;
    }

}
